package com.ztesoft.train.ssh.dao;

import org.springframework.stereotype.Repository;

import com.ztesoft.train.ssh.model.Person;


/**
 * Implements PersonDao behaviors using
 * JPA to interact with a data repository.
 * @author ztesoft
 *
 */
@Repository("personDao")
public class PersonDaoJpa extends AbstractDao {
	
//	private static final Logger logger = Logger.getLogger(PersonDaoJpa.class.getName() );
	
	
	@Override
	public Class getEntityClass() {
		return Person.class;
	}


	@Override
	public String getNameQueryName() {
		return "person.findByEmplid";
	}


	@Override
	public String getNameQueryParamName() {
		return "emplid";
	}
}
